<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>问卷列表</title>
<%@include file="/WEB-INF/jsp/public/commons.jspf"%>
</head>
<body>
 <ol class="breadcrumb">
  <li><a href="home_innerCentre.action">首页</a></li>
  <li class="active">问卷管理</li>
</ol>
<div class="col-sm-2" style="margin-bottom: 10px;">
 	 <s:a cssClass="btn btn-success glyphicon glyphicon-plus" action="questionnaire_addUI.action">添加</s:a>
</div>
 
 <div class="container-fluid">
<table class="table table-striped table-bordered">
   <thead>
      <tr class="success">
		<td>问卷标题</td>
		<td>描述</td>
		<td>已填数量</td>
		<td>是否可填</td>
		<td>相关操作</td>
      </tr>
   </thead>
   <tbody>
     <s:iterator value="recordList">
		<tr>
			<td>${title}</td>
			<td>${description}</td>
			<td>${fillCount}</td>
			<td>${isActivate==1?"可用":"不可用"}</td>
			<td>
				<s:a action="questionnaire_delete?id=%{id}">删除</s:a>
				<s:a action="questionnaire_show?id=%{id}">查看</s:a>
				<s:if test="isActivate==1">
					<s:a action="questionnaire_unactivate?id=%{id}">关闭激活</s:a>
				</s:if>
				<s:else>
					<s:a action="questionnaire_activate?id=%{id}">激活</s:a>
				</s:else>
			</td>
		</tr>
	</s:iterator>
   </tbody>
</table>
<%--分页信息 --%>
<%@include file="/WEB-INF/jsp/public/pageView.jspf"%>
<form id="pageCondition" action="questionnaire_list.action"></form>
</div>
</body>
</html>